<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>添加内容</title>
	<load href="__PUBLIC__/common.css"/>
	<load href="__PUBLIC__/Admin/resources/scripts/jquery-1.7.2.min.js"/>
	<load href="__PUBLIC__/Boot/bootstrap.min.css"/>
	<load href="__PUBLIC__/Boot/bootstrap.min.js"/>
	<load href="__PUBLIC__/Button/css/font-awesome.min.css"/>
	<load href="__PUBLIC__/Ueditor/ueditor/ueditor.config.js"/>
	<load href="__PUBLIC__/Ueditor/ueditor/ueditor.all.min.js"/>
	<load href="__PUBLIC__/Ueditor/ueditor/lang/zh-cn/zh-cn.js"/>
			
</head>
<body>
	
	<!-- <div>
		<p>
 		 <a href="javascript:;" class="btn btn-primary ">编辑内容</a>
 		 <a href="{:U('Content/index',array('cid'=>$_GET['cid']))}" class="btn btn-info" >回到内容列表</a>
		</p>		
	</div> -->
	<ul class="nav nav-tabs">
	 	<li><a href="#home"  class="btn btn-large btn-info" data-toggle="tab">站点配置</a></li>
		<li><a href="#profile"  class="btn btn-large btn-info" data-toggle="tab">水印设置</a></li>
  		<li><a href="#messages"  class="btn btn-large btn-info" data-toggle="tab">上传设置</a></li>
 		<li><a href="#settings"  class="btn btn-large btn-info" data-toggle="tab">伪静态</a></li>
	</ul>

<!-- Tab panes -->
	<div class="tab-content">
	  	<div class="tab-pane active table-responsive" id="home">`
		<form action="{:U('edit')}" method="post">

	  		<table style="margin-top: 10px;" class="table">
	  			<volist name='data' id='c'>
    			<tr>
					<td class="w100">{$c.tilte}：</td>
					<td>{$c.html}</td>
					<td>变量名：{$c.name}</td>
				</tr>
					
				</volist>
  			</table>
  			 <button type="submit" class="btn btn-primary">提交</button>
		</form>

	  	</div>

		<div class="tab-pane" id="profile">
		<form action="{:U('editWater')}"  method="post" enctype="multipart/form-data">

			<table style="margin-top: 10px;" class="table">
    			<tr>
					<td class="w100">开启水印</td>
					<td>
						<label class='checkbox-inline'><input type="radio" name="WATER_ON" value="1" <if condition="$water['WATER_ON']['value'] eq 1">checked='' </if> /> 开启</label>
            			<label class='checkbox-inline'><input type="radio" name="WATER_ON" value="0" <if condition="$water['WATER_ON']['value'] eq 0">checked='' </if> /> 关闭</label>
        			</td>
					
				</tr>
				<tr>
           			 <td>水印图片</td>
            			<td>
               		 	<input type="file" name="WATER_IMG" />
                		<if condition="isset($water['WATER_IMG']['value'])">
                  		<img style="width:100px;height:100px;" src="__ROOT__/{$water.WATER_IMG.value}" alt="" />
              			 </if>
					</td>
       			</tr>
       			<tr>
         		 	<td>水印的透明度</td>
		  		 	<td>
                		<input type="text" name="WATER_PCT" style="width:300px;"  class='form-control' value="{$water.WATER_PCT.value}" />
             		 </td>       
       		 	</tr>
         		
                
                  <tr>
                  	<td>水印的位置</td>
              
                    <td >
                      <input type="radio" name="WATER_POS" value="1" <if condition="$water['WATER_POS']['value'] eq 1">checked=""</if> />左上
                      <input type="radio" name="WATER_POS" value="2" <if condition="$water['WATER_POS']['value'] eq 2">checked=""</if> />上中
                      <input type="radio" name="WATER_POS" value="3" <if condition="$water['WATER_POS']['value'] eq 3">checked=""</if> />上右
                    
                      <input type="radio" name="WATER_POS" value="4" <if condition="$water['WATER_POS']['value'] eq 4">checked=""</if> />左中
                      <input type="radio" name="WATER_POS" value="5" <if condition="$water['WATER_POS']['value'] eq 5">checked=""</if> />中间
                      <input type="radio" name="WATER_POS" value="6" <if condition="$water['WATER_POS']['value'] eq 6">checked=""</if> />中右
                   
                      <input type="radio" name="WATER_POS" value="7" <if condition="$water['WATER_POS']['value'] eq 7">checked=""</if> />左下
                      <input type="radio" name="WATER_POS" value="8" <if condition="$water['WATER_POS']['value'] eq 8">checked=""</if> />下中
                      <input type="radio" name="WATER_POS" value="9" <if condition="$water['WATER_POS']['value'] eq 9">checked=""</if> />下右
                      </td>
                  </tr>	
  			</table>
  			 <button type="submit" class="btn btn-primary">提交</button>	
		</form>

		</div>

		<div class="tab-pane" id="messages">
			
		</div>
		<div class="tab-pane" id="settings">

		</div>
	</div>

</body>
</html>

